# f = open('E:\\Projects\\PycharmProjects\\bigdata33\\day04\\data\\test1.txt',mode='wb')
# # 写数据到文件中
# f.write('黄沪生是33期最帅的男人！'.encode('UTF-8'))
# f.close()
# f = open('E:\\Projects\\PycharmProjects\\bigdata33\\day04\\data\\test1.txt',mode='ab')
# # 写数据到文件中
# f.write('黄沪生是33期最帅的男人！\r\n'.encode('UTF-8'))
# f.close()
# f=open('E:\\Projects\\PycharmProjects\\bigdata33\\day04\\data\\test2.txt',mode='a', encoding='UTF-8')
# # 写数据到文件中
# f.write('数加科技666！\n')
# f.close()f= open('E:\\projects\\PycharmProjects\\bigdata33\\day4\\datadata\\test1.txt',mode='wb')
# f.write('杨浩东最帅！'.encode('UTF-8'))
# f.close()
# f= open('E:\\projects\\PycharmProjects\\bigdata33\\day4\\datadata\\test1.txt',mode='wb')
# f.write('黄沪生！\r\n'.encode('UTF-8'))
# f.close()
def denglu():
    res1=''
    while True:
        name=input('请输入您的姓名：')
        pwd=input('请输入您的密码：')
        f = open(r'E:\projects\PycharmProjects\bigdata33\data', mode='r', encoding='UTF-8')
        res1 = f.readlines()
        for i in res1:
            if i == name:
                print('此用户存在,登录成功')
            else:
                print('此用户不存在,请先注册')